﻿using Basic.WxApiRemoteModel.WxFilter;
using Basic.WxService.Interface;
using WeDonekRpc.Client.Interface;
using WeDonekRpc.Model;

namespace Basic.WxService.RpcEvent
{
    internal class WxFilterEvent : IRpcApiService
    {
        private readonly IWxFilterService _Service;

        public WxFilterEvent (IWxFilterService service)
        {
            this._Service = service;
        }
        public void SyncWxMsgFilter (SyncWxMsgFilter obj, MsgSource source)
        {
            this._Service.Sync(obj.Filter, source);
        }
    }
}
